package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
public class Salary {

    private Long id;

    @DateTimeFormat(pattern ="yyyy-MM" )
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date month;//月份(工资按月显示)

    private BigDecimal baseSalary;//基本工资

    private BigDecimal accumulationFund;//(住房)公积金

    private BigDecimal socialInsurance;//五险

    private BigDecimal overtime;//加班补贴

    private BigDecimal personalIncome;//个人所得税

    private int workday;//工作天数

    private String bankcardNumber;//工资卡号

    private int lateDay;//迟到天数

    private BigDecimal realWages;//实发工资

    private BigDecimal bonus;//奖金

    private BigDecimal coefficient;//奖金系数

//    维护员工关系
    private Employee identifier;//员工标示(用于获取对应的员工信息)

//    部门关系维护
    private Department dept;//部门编号

}